Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Set default maxFieldSectionSize to 16MB (#16088) - #355

Merged
normanmaurer merged 1 commit into
mainfrom
settings_def
Jan 8, 2026
Merged

Set default maxFieldSectionSize to 16MB (#16088)#355
normanmaurer merged 1 commit into
mainfrom
settings_def

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Long.MAX_VALUE cannot be encoded as a valid QUIC varint (only 62 value bits are usable, so Max can be 2^62-1 but JAVA Long MAX = 2^63-1), which can cause HTTP/3/WebTransport negotiation failures. A large but bounded default is safer and more compatible across implementations. as per
RFC9000 Screenshot 2025-12-26 at 12 29 19 AM

Changed default maxFieldSectionSize from Long.MAX_VALUE to 16 * 1024 * 1024 (16MB).
Result
Fixes #16087
Uses a QUIC-compliant value and prevents failures during SETTINGS exchange with peers.

Note : This did not affect any flow uses new Http3Settings() only if
implementations use Http3Settings.defaultSettings()

Result:

Port of netty/netty#16088

Long.MAX_VALUE cannot be encoded as a valid QUIC varint (only 62 value
bits are usable, so Max can be 2^62-1 but JAVA Long MAX = 2^63-1), which
can cause HTTP/3/WebTransport negotiation failures. A large but bounded
default is safer and more compatible across implementations.
as per
[RFC9000](https://datatracker.ietf.org/doc/html/rfc9000?#name-variable-length-integer-enc)
<img width="400" height="300" alt="Screenshot 2025-12-26 at 12 29 19 AM"
src="https://github.com/user-attachments/assets/535048fd-1893-4ffd-bc9e-46c9d802e189"
/>

Changed default maxFieldSectionSize from Long.MAX_VALUE to 16 * 1024 *
1024 (16MB).
Result
Fixes #16087
Uses a QUIC-compliant value and prevents failures during SETTINGS
exchange with peers.

> Note : This did not affect any flow uses `new Http3Settings() `only if
implementations use `Http3Settings.defaultSettings()`

Result:

Port of netty/netty#16088
@normanmaurer
normanmaurer merged commit 4374490 into main Jan 8, 2026
5 checks passed
@normanmaurer
normanmaurer deleted the settings_def branch January 8, 2026 10:25
@normanmaurer normanmaurer added this to the 0.0.31.Final milestone Jan 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant